
public class demo20 {
	public static void main(String[] args) {
   //1+(1/2+1/4+1/6+1/8+1/10......1/100)=?
		double sum=0;
		for(double i=2;i<=100;i=i+2){
			sum=sum+1/i;
		}
		sum=sum+1;
		System.out.println("sum="+sum);
	}

}
